package phoenics.manpads.stinger.controller;

import de.felixroske.jfxsupport.FXMLController;
import javafx.fxml.Initializable;
import javafx.scene.control.Tab;
import javafx.stage.Modality;
import org.springframework.beans.factory.annotation.Autowired;

import java.net.URL;
import java.util.ResourceBundle;

import phoenics.manpads.stinger.StingerFxApplicaction;
import  phoenics.manpads.stinger.util.JavaFxUtil;
import phoenics.manpads.stinger.view.EditTableView;
import phoenics.manpads.stinger.view.ImortDatabaeView;

/**
 * @author Phoenics Chow
 * on 2019年01月22日
 */
@FXMLController
public class TableController implements Initializable {
    private static org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(TableController.class);
    @Autowired
    MainLaunchController mainLaunchController;
    @Autowired
    EditTableView editTableView;

    public void createTable(){
        //Tab cTab=JavaFxUtil.creatTableTab(mainLaunchController.getFunctionView(),"新建表");
        //cTab.setContent(editTableView.getView());
        StingerFxApplicaction.showView(ImortDatabaeView.class, Modality.WINDOW_MODAL);
    }


    @Override
    public void initialize(URL location, ResourceBundle resources) {

    }
}
